﻿@if (Request.IsAuthenticated)
{
	<ul class="nav navbar-nav">
		<li>@Html.ActionLink("Hello " + User.Identity.Name + "!", "Edit", "UserProfile", routeValues: new { ReturnUrl = Request.Url }, htmlAttributes: new { title = "Manage" })</li>
		<li>
			@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-form" })){
				@Html.AntiForgeryToken()
				<button type="submit" class="btn btn-default btn-sm" value="Log off">Log off</button>
			}
		</li>
	</ul>
}
else
{
	<ul class="nav navbar-nav">
		<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
		<li>@Html.ActionLink("Log in", "Login", "Account", routeValues: new { ReturnUrl = Request.Url }, htmlAttributes: new { id = "loginLink" })</li>
	</ul>
}
